﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OpenWaves.ActivityFeed.Web.Tests
{
    public partial class UserProfile : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.DataBind();

            if (!IsPostBack)
            {
                lstUsersToFollow.DataSource =
                    FakeUserProfileProvider.Users.Select(u => new { Id = u.Key, DisplayName = u.Value.Name }).ToList();
                lstUsersToFollow.DataBind();
            }
        }
    }
}